Showing posts with label linux. Show all posts
Showing posts with label linux. Show all posts

Monday, December 9, 2013

Get Wicd working in Linux mint 15/ubuntu!

Wicd is a replacement for the built in network manager, it's supposed to be better and offer better consistency,

So I decided to try it out, but it was not very easy to get working,
here is the process to get it too work:

(you know the drill,  black highlights means copy and paste it into terminal.)


Step 1 - install Wicd:
sudo apt-get install wicd python-wicd wicd-daemon wicd-gtk

step 2 - move the resolve file:
sudo mv /etc/resolv.conf /etc/resolv.conf.backup
sudo ln -s /run/resolvconf/resolv.conf /etc/resolv.conf

step 3- stop old network manager from starting up: (if you do not want to uninstall it)
sudo mv /etc/init/network-manager.conf /etc/init/network-manager.conf-disabled
sudo mv /etc/xdg/autostart/nm-applet.desktop /etc/xdg/autostart/nm-applet.desktop.disabled
sudo killall nm-applet

Step 4 - (optional) remove the old network manager:
sudo apt-get purge dnsmasq-base geoclue-ubuntu-geoip gir1.2-networkmanager-1.0 libnm-glib-vpn1 libnm-glib4 libnm-gtk-common libnm-gtk0 libnm-util2 libproxy1-plugin-networkmanager mobile-broadband-provider-info network-manager network-manager-gnome network-manager-pptp network-manager-pptp-gnome
(all one line)

step 6 - first time run:
(wicd-gtk --tray </dev/null &>/dev/null &)

(you may get some errors, and network devices may not show up, will be fixed on reboot)

step 7 - reboot:
sudo reboot  (Or just restart normally)

step 8 - setup:
click the new icon in the panel to open the network manager, click the arrow  near the top right,
then click 'preferences' in the menu  make sure  'network interfaces' is filled in correctly with the wireless and wired interface name, eg. wlan0 and eth0.

then connect to your wifi access point, and click 'add' by 'wired network' to set up your network access.

if  you cannot connect, reboot, and you should be all good to go!

-----
sources:
http://forum.linuxmint.com/viewtopic.php?f=53&t=115566#wrap

Wednesday, October 24, 2012

Install the FULL version of Gnome 3 on Ubuntu!

Ok, so like many people, I'm not a huge fan of Unity,
I understand that it has it's place, I've spend some time with it, and it's not terrible, I just fine Gnome 3 to make me more productive.

I'm running Ubuntu 12.10 64Bit but this should work on any version of ubuntu!

...Anyway, you can install Gnome 3 on Ubuntu by running:

sudo apt-get install gnome-session

But, the one in the Ubuntu repo is not the Full version, it's had some features removed, and if you install it you'll be stuck with some of unity's version of apps, such as the file manager nautilus.
here are some examples of the visuals.
Ubuntu's gnome 3 (nautilus)


In order to get the full version of gnome 3, you must add the PPA:


sudo add-apt-repository ppa:gnome3-team/gnome3

If you already have gnome 3 installed you can upgrade to the Full version using the built in updater:

Ubuntu (12.10's) update manager. 

Or if you want to do it via the command line:

sudo apt-get update
sudo apt-get upgrade


If you do not have gnome 3 installed yet you can run this:

sudo apt-get update

sudo apt-get install gnome-session


Either way, reboot, your computer afterwards, and  log in to gnome, and you'll be at the full version:

Gnome 3 Full version (nautilus)
And You're Done!

Saturday, October 6, 2012

Fixing VLC dependencies error (Can't Reinstall VLC)

The story: (feel free to skip)


     I use VLC a lot, And When 2.0 came out Ubuntu did not update to that version, the REPO had the older version even months later, So I added the daily repo:
http://ppa.launchpad.net/videolan/stable-daily/ubuntu

and that worked for a while, after a few months later I received a 'Distribution upgrade', and when I installed it, it removed VLC. when I tried to re-install it gave me a bunch of unmet dependency's, so I disabled the source, ran apt-get update, and tried to install the older VLC, that did not work either. I eventually found a web page, and it helped me get it working, and I was also able to get the 'Stable Daily' working too


But last night, I got another 'disto upgrade' and it uninstalled VLC again.

when I try to reinstall from daily I get:
The following packages have unmet dependencies:
 vlc : Depends: fonts-freefont-ttf but it is not installable
       Depends: vlc-nox (= 2.0.3+git20121005+r392-0~r42~precise1) but it is not going to be installed
       Depends: libvlccore5 (>= 2.0.0) but it is not going to be installed
       Recommends: vlc-plugin-notify (= 2.0.3+git20121005+r392-0~r42~precise1) but it is not going to be installed
       Recommends: vlc-plugin-pulse (= 2.0.3+git20121005+r392-0~r42~precise1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
 the same thing would happen when I disabled the 'Daily' source. after some time on askubuntu, I tried some suggestions, and neither helped, So I picked one of the dependencies and tried to install it manually:

sudo apt-get install vlc-nox
This gave me a dependency error for 'libvlc5' so I attempted to install that:
sudo apt-get install libvlc5
And that said it depended on 'libvlccore5' so...
sudo apt-get install libvlccore5
and that pointed to 'vlc-data' and another program I did not reconize. so I started with vlc-data:
sudo apt-get install vlc-data

and this time it said vlc-data was already installed! -The Fix-

so I ran:
sudo apt-get remove --purge vlc-data
and just to make sure, nothing went wrong. I disabled the 'Daily' source for VLC Then I ran:
sudo apt-get update
followed by:
sudo apt-get install vlc
and it installed without any issues, so then I turned the daily source back on
and ran:
sudo apt-get upgrade
and BOOM! I was able to get the latest version of VLC!

 --- Quick fix:

 This may fix the problem for you (did not work for me though):
sudo apt-get remove --purge vlc
followed by:
sudo apt-get install vlc
source: http://askubuntu.com/questions/197161/cant-reinstall-vlc-removed-by-updateagain/197321#197321

Friday, October 5, 2012

BackLight not working on your laptop? try this!

Every since I got this new HP laptop about a year ago,
I was unable to change the backlight brightness, this caused many issues,
most noticeably with battery life. and after a year and 3 months I finally found the Fix:

Special thanks to Chris Moore at askubuntu.com

All you have to do is edit /etc/default/grub
and find the line : 
GRUB_CMDLINE_LINUX_DEFAULT="
and add
 acpi_backlight=vendor to the end of it.
so the full line should read:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_backlight=vendor"

Save the file and then run sudo update-grub
after you reboot, you will now be able to change your brightness! Minor issue: sometime after my screen has been locked for a while, the brightness dose not turn on but the password screen comes up, after you type your password and press enter, you will be able to turn your brightness back up (using keyboard). weird, I'll let you guys know if I find a fix. source: http://askubuntu.com/questions/21523/screen-brightness-not-changing-on-acer-5742-notebook/148242#148242

Sharing Internet Linux on Ubuntu(DCHP Server setup included)


Hey guys this is my first post on the new blog.

 Today, I'll show you how to share Your internet connection with from your Ubuntu PC over Ethernet,
so you could do Wlan->Eth or even Eth->eth.

This can be used to:

-Get an extra computer connected to the internet (6 pc's and only 5 ports on router)
-Bring Older Pc's online (use a pc that dose not support wifi online, but connecting a laptop to the pc's eth port)
-Make a connection bridge (connect laptop to a wifi router, and connect laptop{in a different room} to wired switch) have 5 other PC's online without having to buy 5 wifi cards 

-Lan Party! (connect to a switch/hub and everyone will get an Ip address and internet)
-Connect PS2 or Xbox 360 to the internet!
-Analyse network traffic,...for security reasons. 

The drawback:
All computers connected are on a different subnet and will not be able to see the upper level computers, so no file sharing can be done.

 the first thing we will need to do is add a new connection that will forward the internet. open up terminal, and type:   nm-connection-editor

This should open the network config box:
From here click 'Add'
From here you will see a new window open,
 Give it a Name you will remember,
I use "FWD" short for 'forward'

Feel Free to leave the two check boxes checked.

(optinal)
If you have two Ethernet devices, and you know you want to only use one (such as eth2) as the 'out' connection (connecting to client PC) then you can click the arrow next to 'Device mac address'
and select the device you wish to lock it to.
(can be changed by going back and editing this connection)

Now click the 3rd tab.
From here you should see 'IPv4 Settings'
under method click 'Automatic DCHP' and  change it to 'Shared to other computers'



Once this is done connect the two devices, and you where you chose your wifi network their should be a new option under 'Wired' that says 'FWD'
or what ever you named it.

Make sure your Wifi card/ or 1st Ethernet device is still connected to the internet.

and from here you would be able to connect your client to the internet using a static IP address:
Client:
IP: 10.42.0.2
Netmask: 255.255.255.0
Gateway: 10.42.0.1

Dns: 8.8.8.8   (google public DNS)
dns2: 208.67.220.220  (open DNS)


But Today I'll be showing you how to also set up a DCHP server for this new connection.
-This is completely optional, but it's good for if you connect to more than one PC, and do not want have to worry about remembering to change the IP settings Every time.


first install Dhcp:

sudo apt-get install dhcp3-server

set it up:

sudo gedit /etc/default/isc-dhcp-server

then change:    INTERFACES=""

to be where you want to broadcast

eg. INTERFACES="eth0"

mostly likely the new network address will be 10.42.0.1but make sure with:
ifconfigyou'll get something like this:
Find your outgoing connection, mine is going from wlan0 to Eth0
so eth0 is my outgoing connection.
eth0      Link encap:Ethernet  HWaddr 10:1f:46:88:52:11  
          inet addr:10.42.0.1  Bcast:10.42.0.255  Mask:255.255.255.0
          inet6 addr: fe80::121f:74ff:fe11:ad23/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1400  Metric:1
          RX packets:290599 errors:0 dropped:0 overruns:0 frame:0
          TX packets:147466 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:42187116 (42.1 MB)  TX bytes:69827448 (69.8 MB)
          Interrupt:47 Base address:0xc000 


look next to 'inet addr' and if it's something like 192.168.1. or 192.168.0. then  chances are you did not connect to your new network. if it starts with 10. and is different such as 10.32.0.1, then just substitute the first 3 number sets '10.32.0' for everything I show from now on.
so If i say type '10.42.0.2', then you'd type '10.32.0.2' but that's ONLY if you've got a different IP!



Next we'll configure the server:
sudo gedit /etc/dhcp/dhcpd.conf   

once it opens, add this to the bottom

#----internet Share
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.1.255;
option routers 10.42.0.1;
option domain-name-servers 8.8.8.8, 208.67.220.220;

subnet 10.42.0.0 netmask 255.255.255.0 {
range 10.42.0.2 10.42.0.250;
}


now we will restart server and networking:

sudo /etc/init.d/isc-dhcp-server6 restart
sudo /etc/init.d/isc-dhcp-server restart

sudo /etc/init.d/networking restart

now disconnect your client device, and
wait a few seconds, and reconnect,
If you are unable to connect, restart the client, and if you are still having issue's restart both. 


You should now be able to connect to the internet!

-Optional- Toggle DCHP
(testing)
By default Your DCHP server will start every time you start Your PC, however you may now want it to, why you ask?

well if you have a Laptop, and only one Ethernet port, when you're at home running the DCHP for you network may be fine, but if you go to a friends house, you would not want to have it running, because this could conflict with their network. so to enable toggling use these two commands:
sudo sh -c "echo 'manual' > /etc/init/isc-dhcp-server6.override"
sudo sh -c "echo 'manual' > /etc/init/isc-dhcp-server.override"

then when you're done running the server use:
sudo /etc/init.d/isc-dhcp-server stop&&sudo /etc/init.d/isc-dhcp-server6 stop
you can verify they are both off with:

 sudo  status isc-dhcp-server6&&  status isc-dhcp-server6
the output should be:
isc-dhcp-server6 stop/waiting
isc-dhcp-server stop/waiting

When you reboot they will both be off,

you can turn it back on with:
sudo start  isc-dhcp-server


Sources:
http://www.ubuntugeek.com/how-to-install-and-configure-dhcp-server-in-ubuntu-server.html
http://askubuntu.com/questions/162695/setup-dhcp-server-for-lan-party

http://www.amazon.com/gp/product/B002SHZ1H0/ref=oh_details_o01_s00_i00 (adapter used for initial testing {Works great!})