Advertising

How to SparkyLinux CLI

 

For Sparky CLI 3.4 and above go to the newer guide.

 

 

This quick quide will let you know about SparkyLinux CLI up to version 3.2.
All the applications presented above have been preinstalled in SparkyLinux up to version 3.2.
 
I. What does the CLI mean?
Command Line Interface is an interface which works with no a graphic interface.
All the work has to be managed in two ways:
1. having a command
   or
2. using an additional interface working in text mode as well (but much easier)

II. What is the SparkyLinux CLI?
SparkyLinux CLI works as a Live CD/USB distro and features Debian “testing” branch base system with a few tools.
It has a set of drivers for wireless network devices, the same as rest of the SparkyLinux editions have.
Sparky CLI is designed to be used in two cases:
1. to make an installation of Debian testing base and to build own desktop based on it
  or
2. to be used on machines which can’t run the graphics server

Sparky CLI can be used as Live CD/USB system or can be installed on a hard or USB drive.
Live edition of Sparky CLI needs CD media or 1 GB of flash drive.
It requires 2 GB of a hard or USB drive to make full system installation.

III. What does the SparkyLinux CLI have?
1. The base system of Debian testing
2. Set of drivers for wireless network devices (Wifi)
3. Sparky Live Installer, which can be run with command:
sudo sparkylinux-installer
4. Cfdisk – partitioning tool.

Cfdisk

5. Networking tools:
a. Ceni – network manager, can be run with command:
sudo ceni

Ceni

Some of wireless cards needs an exact module to be loaded. It has to be done if Ceni will not find your network device. Check your card type with command:
lspci
 or
lsusb

Load the module (for example: my wifi card works on “zydas” chipset):
modprobe -r zd1211rw

If the command will not display any problem, just load it:

modprobe zd1211rw
Then start Ceni again.

b. Ping
This tool let you check has the connection with internet been done well (any address):

ping -c 2 sparkylinux.org
c. ELinks – web browser.

ELinks

d. CenterIM – instant messenger, it supports the protocols: Gadu-Gadu, Jabber, ICQ, Yahoo!, AOL, IRC and MSN.

CenterIM

e. UFW (Uncomplicated Firewall) lets you configure the firewall in easy way.
The firewall activation (all the commands as root):
ufw enable
To disable it:
ufw disable
The firewall status check in:
ufw status
f.  Wget – download manager, can be run:
wget file-address

g. Midnight Commander – FTP (& SFTP) file transfer. “Left” or “Right” tab -> ftp (sftp) link.
Connect to a server with command:
user-name@ftp.server-address
Then type your password.

MC FTP

h. rTorrent – BitTorrent client, start downloading with command:
rtorrent file.torrent

rTorrent

6. Multimedia
a. Alsamixer – the sound mixer – lets you configure sound devices.
Run it with command:
alsamixer
Usage:
– upper cursor – makes the sound louder
– bottom cursor – makes the sound quieter
– left and right cursor – changing between sound devices
– the “m” key switch on/turn off sound device, “MM” – a device is on, “OO” – a device is off.

Alsamixer

b. MOC (Music on Console) – music player, works with “ncurses” interface.
Run it with command:
mocp

MOC

c. VLC (VideoLAN Client) – multimedia player, it supports many popular audio and video file formats and streaming. VLC can be run in two ways:
cvlc /patch-to-local-or-network-file
or using “ncurses” interface (recommended) – lets you browse local disks and partitions:
vlc -I ncurses
Press “Shift” + “b” to browse files and directories.

VLC

7. Others
a. Midnight Commander – file manager and text editor, can be run with command:
mc
b. Nano – text editor, can be run with command:
nano
c. Htop – an interactive system-monitor process-viewer:
htop
d. Fbi – graphics viewer:
fbi /patch-to-file
e. DF – lets you check how much space a file system is using (%), the file system type, which partition it is on, and its mount point:
df
With “h” option – in MB:
df -h
f. Mount – lets you mount partitions, disk and removable storage devices.
Checking all devices:
fdisk -l
Mounting a partition:
mount -t file_system_type /dev/partition_number /mounting_point
for example.:
mount -t vfat /dev/sda8 /mnt
Type exact file system type (“ext2”, “ext3”, “ext4”, “ntfs-3g”, etc.) instead of “vfat”.
Unmounting partitions:
umount /dev/partition_number
for example.:
umount /dev/sda8

 
Back to -> FAQ main page
 

How to install the newest linux kernel?

 

SparkyLinux 2.0 is based on Debian testing “Wheezy” so it featuring Linux kernel 3.2 LTS.
If you need to install the newest Linux kernel, you have to:
1. In text console edit (as root) “sources.list” and add Debian unstable “Sid” repos:
su
nano /etc/apt/sources.list

2. Add new lines on the end of the list:
## sid
deb http://ftp.debian.org/debian/ sid main contrib non-free
deb-src http://ftp.debian.org/debian/ sid main contrib non-free
deb http://www.deb-multimedia.org sid main non-free

3. Save it and refresh package list:
apt-get update

4. Open Menu-> Applications-> Administration-> Synaptic Package Manager
a. Click “Search” button and type “linux-image”
– if your computer is old ( CPU such as Pentium II, Pentium III, etc. ) choose
linux-image-(the-highest-number)-486

– if you have modern machine choose
linux-image-(the-highest-number)-686-pae

– if you run SparkyLinux x86_64 version choose
linux-image-(the-highest-number)-amd64

b. Then click “Apply” button to install it
c. Reboot your computer choosing new installed kernel from booting list.

 
Back to -> FAQ main page
 

How to remove a package?

 

If you don’t want to keep a package you can simple remove it in two different ways:

1. Synaptic
a. Open Menu-> Applications-> Administration-> Synaptic Package Manager
b. Find an installed package you want to trash
c. Mark it for Removal
d. Click “Apply” button

Synaptic

2. Text console

a. Run text console and type:

su
password for root:
apt-get remove package-name

 

b. After that clean the system:
su
apt-get autoremove
apt-get autoclean

 
Back to -> FAQ main page
 

How to install new package?

 

You can do it in a few different ways:

1. Synaptic
a. Open Menu-> Applications-> Administration-> Synaptic Package Manager
b. Click “Reload” button first, then “Mark All Upgrades”
c. Click “Search” button and type a name of a package then “Mark it for installation”
d. Click “Apply” button

Synaptic

2. Text console

a. Run text console and type:

su
password for root:
apt-get update

b. To find a package you request:
apt-cache search package-name

c. Install it:
apt-get install package-name

 

3. GDebi (package.deb)

If you downloaded a new package named “package.deb” from the network you can simple install it with double click. It will help you to install “.deb” packages with automatic dependency resolution (it automatically downloads and installs the required packages).

4. Text console (package.deb)

If you downloaded a new package named “package.deb” from the network you can install it in a text console:
su
password for root
dpkg -i /patch-to/package.deb

Remember that, it will not automatically downloads and installs the required packages, so try:
apt-get -f install

 
Back to -> FAQ main page
 

How to upgrade all packages?

 

You can do it in a few ways:

1. System Upgrade (recommended)
a. Open Menu-> System-> System Upgrade or the System Upgrade icon on the desktop’s panel.
b. Simply click “OK” button to upgrade the system now.

System Upgrade

 

2. Text console

a. Run text console and type:

su
password for root:
apt-get update
apt-get dist-upgrade
apt-get install -f

 

After packages upgrading / installation clean the system:
su
apt-get autoremove
apt-get autoclean

 

3. Sparky APTus

a. Open Menu-> System-> Sparky-APTus
b. Run “Update and Upgrade” tab -> Update package list.
c. Run “Update and Upgrade” tab -> Fully upgrade the system.
d. Run “Fix Broken” tab -> Fix broken packages via APT.

Sparky APTus

 

4. Synaptic
a. Open Menu-> Applications-> Administration-> Synaptic Package Manager
b. Click “Reload” button first, then “Mark All Upgrades” and “Apply”

Synaptic

 
Back to -> FAQ main page
 

Advertising