MOVING!!!

Hey there, after several years of playing with Blogger and trying to get thing sorted out how I wanted, I finally decided to host my own domain so I could manage things easier. So this blog (which, admittedly, hasn't been updated much) is getting moved to my all-new site: DavisTobias.com/Linux. Also, to make it easier to transfer RSS feeds, this is the link to the new RSS feed. I'll leave this site and it's posts up, so I don't contribute to dead links on the internet, but I'm shutting off comments and won't post any more here.

April 20, 2010

MOVING!!!

Hey there, after several years of playing with Blogger and trying to get thing sorted out how I wanted, I finally decided to host my own domain so I could manage things easier.

So this blog (which, admittedly, hasn't been updated much) is getting moved to my all-new site: TobiasLabs.com, and this section on Linux terminal commands can be found here. Also, to make it easier to transfer RSS feeds, this is the link to the new RSS feed.

I'll leave this site and it's posts up, so I don't contribute to dead links on the internet, but I'm shutting off comments and won't post any more here.

November 28, 2009

Showing the list of installed packages

Hey there, this site has moved, so comments are disabled. Thankfully, you can go to the page, carefully linked for your satisfaction. Click here to go there.

I haven't had much time to play around in Linux for a while, what with school, but I recently got a new desktop computer and installed Windows 7 (the horror!) and am now doing some development using VirtualBox, the computer virtualization software. My desktop has all the power I will need for some time, but I would like a light-weight version of Ubuntu (my favored flavor) to install on my newly acquired Asus EEE PC 900A.

Later on I will post some of my findings, but for now I just wanted to point out the helpful command which will list all the packages currently installed: dpkg --get-selection

A word on the commands:
dpkg This is the debian package manager
--get-selection This is the command to list the installed packages

Another trick:
dpkg -L package This will list all the files associated with the package
dpkg --get-selection | grep package The "grep" command will search through the lengthy list and display anything with "package" in it's name.

This handy command will list every package currently installed, which is super helpful once you've generated your custom blend of software but haven't written down what you installed. Which I obviously did. Many times.

Of course, this list turns out to be a bit lengthy and unwieldy, especially since it outputs the list right in the terminal. Thankfully you can make the list go into a text file by using the command: dpkg --get-selection > filename.txt

The carat symbol, >, will take whatever would have gone to the terminal display, and output it to a file, "filename.txt".

June 16, 2009

IceWM Manager?

I have been configuring IceWM to suit my needs, but what would be really handy is a graphic interface to work with. There are two existing ones, but neither are still being developed. I have been considering either making a new graphic interface, modifying the needed parts from the existing, or making an updated version of one of the existing versions.

Alternately, I wonder if I could develop a web-based version, so that you can go to the web-site, interactively change theme colors/etc., and when done grab the text files and so on. The part I am unsure of is how to generate the text and image files correctly, but I could probably do this.

Anyways, any thoughts on the matter would be helpful.

June 13, 2009

Adding Samba support to Thunar

Hey there, this site has moved, so comments are disabled. Thankfully, you can go to the page, carefully linked for your satisfaction. Click here to go there.

Thunar does not natively support Samba, which is theLinux port of the Microsoft network folder/file sharing protocol, but support can be hacked in using the following method.

Note that I stole these instructions mostly from here, but I modified them for my conditions, which were: Minimal installation of Ubuntu, plus IceWM.

First make sure you have the correct software, Samba:
sudo aptitude install samba

Now you need FuseSMB, which is the Linux "File System in User SpacE" for Samba. This is found in the Universe repositories, to enable them, run the following (two) commands, borrowed from the official wikisite:
sudo su -c '\ndeb http://us.archive.ubuntu.com/ubuntu/ jaunty universe >> /etc/apt sources.list'
sudo su -c 'echo \ndeb-src http://us.archive.ubuntu.com/ubuntu/ jaunty universe >> /etc/apt/sources.list'
Now that the Universe repository is enabled, installing fusesmb is easy:
sudo aptitude install fusesmb

Now you need to add the fuse module to be loaded when the computer starts. Do this by adding the word fuse to the file /etc/modules, either using a text editor or with this command:
sudo su -c '\nfuse\n >> /etc/modules'

At this point you will need to do a full reboot to your computer so the fuse module loads correctly. Make sure to bookmark this page so you can finish the instructions when you come back!

After rebooting, you need to make a folder where Samba can mount: I made mine /media/network for simplicity. From the command line: sudo mkdir /media/network

Now you will need to make sure the folder has the correct permissions. To do this, open Thunar using sudo thunar which will give you administrator rights, so be careful not to do anything other than this. Right click on your folder /media/network and go to properties. You need to set Group "Access" and "Others" to "Read & Write". Finally, run this command: sudo chown :fuse /media/network

You also need to add the fusesmb code to the folder /etc/init.d which is done by making a script and putting it in that folder. The script is a really simple one, just make a text file on your desktop, name it something descriptive like networkmount, and put this inside:
#!/bin/bash
# This mounts the Samba service to the folder /media/network
fusesmb /media/network

Now make the script executable with this command:
chmod +x networkmount where networkmount is the name of the file
Finally, copy the file into the correct folder, you will need to be an admin, so try this command:
mv networkmount /etc/init.d/networkmount

Now you need to make Samba mount to the correct folder whenever you log in. What I did is add the correct command to the file /home/tobias/.xinitrc , which will run the command when I start X, but you may have a different way. How my .xinitrc file looks now (make sure the exec icewm-session & is last):
fusesmb /media/network &
exec icewm-session &

Now you will need to do a full reboot once more.

That's it! If you open Thunar and navigate to /media/network it will show you the available Samba networks. Note, however, that the response time is a bit slow, I thought I had done it wrong at first, but I was just impatient. If it won't load after a while, try logging out and logging back in, or resetting, to see if it will reinstate correctly.

For added navigations, if you are using the "Shortcuts" Side Pane in Thunar (control + b) you can navigate to /media and drag the network folder to the side pane for quick access! Alternately, make a link to it and put the link wherever it's handy.

test