Home |
Last modified: 16-06-2020 |
Here, we'll just burn a small CD to fetch files from the Net:
First, check which hardware is available through "dmesg" and "lspci -knn"
Check that this hardware has a Linux driver. If not, check that you can use NDISWrapper and the Windows driver. If still NOK, you'll have to ask if there's any way to get that hardware to work with Linux.
Once the hardware is available, run "iwconfig".
http://www.commentcamarche.net/faq/11210-configurer-le-wifi-sous-linuxhttp://doc.ubuntu-fr.org//wifi_liste_carte#tableau
http://www.linuxforums.org/forum/wireless-internet/137532-wireless-setup-start-here.html
http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:_Ch13_:_Linux_Wireless_Networking
What packages do we need?
samba - SMB/CIFS file, print, and login server for Unix
samba-common - common files used by both the Samba server and client
samba-common-bin - common files used by both the Samba server and client
samba-dbg - Samba debugging symbols
samba-doc - Samba documentation
samba-doc-pdf - Samba documentation in PDF format
smbclient - command-line SMB/CIFS clients for Unix
winbind - Samba nameservice integration server
samba-tools - Samba testing utilities
swat - Samba Web Administration Tool
To get more detailed logs:
To check who is connected: smbstatus -b
To check the options used to compile Samba: smbd -b
Under Windows, to get rid of the "System error 5 has occurred. Access is denied." error when listing shares on a server, you must first authenticate against the server itself: "net use \\ubuntu /user:jdoe". Then, you can list whatever shares the server has: "net view \\ubuntu".
Here's how to set up a really simple SMTP server so that PHP applications can send e-mail through your ISP's SMTP server. Note that I'm running PHP5 as a FastCGI process (hence, the need to restart the beast):
According to Wikipedia, "The Advanced Packaging Tool, or APT, is a free user interface that works with core libraries to handle the installation and removal of software on the Debian GNU/Linux distribution and its variants. APT simplifies the process of managing software on Unix-like computer systems by automating the retrieval, configuration and installation of software packages, either from binary files or by compiling source code. APT was originally designed as a front-end for dpkg to work with Debian's .deb packages, but it has since been modified to also work with the RPM Package Manager system via apt-rpm."
"apt-get" is recommended on Ubuntu hosts, while "aptitude" is recommended on Debian hosts. Both are front-ends to the APT package manager, but you shouldn't mix and match, as the APT database will get confused.
apt-get update: Connects to the depots listed in /etc/apt/sources.list, and updates the local cache of applications available in the depots.
apt-get dist-upgrade
Note: You can also update a single package by running "apt-get install some.already.installed.package"
apt-cache search mypackage
To restrict search to package names:
aptitude search mypackage
To find the version of a package:
apt-cache -n showpkg mypackage
apt-cache show mypackage
Note: Shows all the files that have "mypackage" name in it
apt-get install apt-file
apt-file update
apt-file show mypackage
Alternative:
apt-cache search mypackage | grep mypackage
apt-file search myfile
dpkg-deb -x /var/cache/apt/archives/mypackage.deb /tmp
dpkg -l
Here's how to limit output to a given package...
dpkg -l 'libreoffice*' | grep '^ii'
...and 2) the first column:
dpkg -l 'libreoffice*' | grep '^ii' | awk '{print $2}'
dpkg-query -W --showformat='${Installed-Size;10}\t${Package}\n' | sort -k1,1n
dpkg -L mypackage
dpkg -s mypackage
apt-get upgrade --dry-run
apt-get remove mypackage
Full removal: apt-get --purge remove mypackage
Making sure it's cleanly removed: aptitude purge ~c
"The two main user management tools are smbpasswd and pdbedit. The former is the original tool for setting user passwords in an smbpasswd file. During the Samba 3.0 development cycle, it was thought that this tool would be superseded by pdbedit. However, this has not yet happened, and pdbedit is considered by some as the example of how not to build a command-line interface. " (source)
apt-get install vim
dpkg-reconfigure tzdata (curses-based application that writes the right data in /etc/timezone)
apt-get install ntpdate
ntpdate ntp.ubuntu.com (instant time sync)
apt-get install ntp (ntpd: gradual, regular time sync)
vi /etc/ntp.conf, and add servers close to you, eg. for France:
/etc/init.d/ntpd restart
tar -xjvf mytar.bz2
update-rc.d -f myapp remove
lsb_release -a
fuser -v -n udp 68