Advertising

Sparky APTus on Debian and Ubuntu

 

If you’d like to install Sparky APTus on Debian, Ubuntu or their spins, simply do:
1. Open a text console and add Sparky repository (as root):
nano /etc/apt/sources.list.d/sparky.list
2. Add the text to the file:
deb http://sparkylinux.org/repo testing main
3. Get Sparky public key:
wget -O - http://sparkylinux.org/repo/sparkylinux.gpg.key | apt-key add -
4. Refresh package list:
apt-get update
5. Install it:
apt-get install sparky-aptus sparky-remsu
6. Check is everything ok:
apt-get install -f
That’s all, close the text console and run Sparky APTus from Menu-> System.

 
Back to -> FAQ main page

 

How To SparkyLinux CLI 3.4 and above

 

SparkyLinux CLI started from version 3.4 features only:
– core system of Debian testing
– network manager wicd-cli
– file manager, text editor and ftp client Midnight Commander
– web browser eLinks
– the old installer (sparkylinux-installer)
– set of wifi cards drivers
– unzip, unrar, p7zip-full, ntfs-3g, nano, ufw

How to make internet connection?
You can do it in 3 ways:

1. wicd-cli
Find available networks:
wicd-cli -y -l
Make connection:
wicd-cli --wireless -n [network-name] -m [ESSID] -c

Get more info:
wicd-cli --help
man wicd-cli

 

2. Manual way
Scan available devices:
iwlist scan
Edit ‘interfaces’ file:
nano /etc/natwork/interfaces
Wired device ‘eth0’ and dynamic IP:
auto eth0
allow-hotplug eth0
iface eth0 inet dhcp

Wired device ‘eth0’ and dynamic IPv6:
auto eth0
allow-hotplug eth0
iface eth0 inet6 dhcp

Wired device ‘eth0’ and static IP (sample):
auto eth0
iface eth0 inet static
address 192.2.2.2
netmask 255.255.255.0
gateway 192.2.2.254

Wired device ‘eth0’ and static IPv6 (sample):
iface eth0 inet6 static
address 2001:db8::c0ca:1eaf
netmask 64
gateway 2001:db8::1ead:ed:beef

Start the network:
ifup eth0

 
Wireless device ‘wlan0’ and dynamic IP:
auto wlan0
iface wlan0 inet dhcp

Wireless device ‘wlan0’ and static IP:
auto wlan0
iface wlan0 inet dhcp
wpa-ssid
wpa-psk

Start the network:
ifup wlan0

Get more info:
ifdown --help
ifup --help

3. Wicd-curses
Started from Sparky 3.6, there is preinstalled ‘wicd-curses’ – a curses client for Wicd.

It needs something to add.

 
 
Back to -> FAQ main page
 

How to: Set monitor resolution

 

Monitors resolution used to be set properly during a live system testing and/or the hard drive installation. In some cases, some monitors settings have to be fixed manually.

This short tutorial lets you set it right.

1. As the first step, check what exact resolution of your monitor is offered by the monitor producer.

2. Use ‘XRandR’ – a console tool which lets you detect existing settings and set new settings right.
In my case it should be 1366×768 but my system set it wrong, to small resolution 1024×768.

xrandr -q
VGA1 connected (normal left inverted right x axis y axis)
   1024x768       60.0 
   800x600        60.3     56.2 
   848x480        60.0 
   640x480        59.9 
DP1 disconnected (normal left inverted right x axis y axis)

3. Generate ‘modeline’ using ‘gtf’ command:
gtf width height refresh-frequency
In my case, it is:
gtf 1366 768 60
 
# 1368x768 @ 60.00 Hz (GTF) hsync: 47.70 kHz; pclk: 85.86 MHz
Modeline "1368x768_60.00" 85.86 1368 1440 1584 1800 768 769 772 795 -HSync +Vsync

4. Set right settings for your monitor (copy the last line after ‘Modeline’):
xrandr --newmode "1368x768_60.00" 85.86 1368 1440 1584 1800 768 769 772 795 -HSync +Vsync

xrandr --addmode VGA1 1368x768_60.00
xrandr --output VGA1 --mode 1368x768_60.00
* Change “1368x768_60.00” for your resolution.
* Change ‘VGA1″ for your monitor description.

 
This is a temporary solution only.
You can make it more permanent.

 
5. Create a new empty file in your home directory, for example:
.mymonitor
6. Copy the last three commands, we used before and past them to the file (see above):

#! /bin/bash
xrandr --newmode "1368x768_60.00" 85.86 1368 1440 1584 1800 768 769 772 795 -HSync +Vsync
xrandr --addmode VGA1 1368x768_60.00
xrandr --output VGA1 --mode 1368x768_60.00

7. Make the file executeable:
chmod a+x .mymonitor
8. Add the file “.mymonitor” to the system’s startup list.
You can do it manually – create a new ‘desktop’ file, for example:
mymonitor.desktop
in your home directory:
~HOME/.config/autostart/
9. Copy the text below and past it to the ‘desktop’ file:

[Desktop Entry]
Encoding=UTF-8
Name=MyMonitor
Comment=MyMonitor
Exec=sh /home/user/.mymonitor
StartupNotify=true
Terminal=false

* Change ‘user’ for your user nick name.

 

More information about XRandR you can get with commands:

xrandr --help
man xrandr

 
Back to -> FAQ main page
 

Sparky repository

 
The configuration is deprecated, go to Sparky Wiki pages.

Log in to root account, then:
1. Create a new file:
nano /etc/apt/sources.list.d/sparky.list
2. Copy and past Sparky repo to the file.
## sparky
deb http://sparkylinux.org/repo testing main

3. Refresh packages list:
apt-get update
4. Install the Sparky public key:
apt-get install sparky-keyring
or
wget -O - http://sparkylinux.org/repo/sparkylinux.gpg.key | apt-key add -

then refresh package list again:
apt-get update
 
Back to -> FAQ main page
 

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
 

Users and groups

 

After hard drive installation SparkyLinux has one user account created and root account as well. This quick tutorial will help you how to make changes with them.

 
1. To change your password type:
passwd
Type your existing password and type two times your new password.

2. To add new user:
adduser new-user-name

3. To delete a user:
userdel user-name

4. To delate a user with its home folder and all files:
userdel -r user-name

5. To check your ID:
id user-name

6. To add a user to a group:
adduser user-name group-name

7. To check what groups you belongs:
groups

8. To add a new group:
groupadd group-name

9. To delete a group:
groupdel group-name

10. To change root (admin) password:
su
Type existing root password and
passwd
Then type twice new UNIX (root) password.

 
 
Back to -> FAQ main page
 

Advertising