Symbianize Forum

Most of our features and services are available only to members, so we encourage you to login or register a new account. Registration is free, fast and simple. You only need to provide a valid email. Being a member you'll gain access to all member forums and features, post a message to ask question or provide answer, and share or find resources related to mobile phones, tablets, computers, game consoles, and multimedia.

All that and more, so what are you waiting for, click the register button and join us now! Ito ang website na ginawa ng pinoy para sa pinoy!

{Linux} Tips and Tricks.

Ito yung na o-observed ko with TC.

Let say mag iinstall tayo ng nano(cli-editor)
---download mo yung ncurses-common.tcz dahil kailangan ito ni ncurses
-----download mo yung nurses.tcz dahil kailangan ito ni nano
-------down load mo yung nano.tcz
-----------at ang lahat na ito ay ipasok mo sa optional directory.

so kung kailangan mo na si nano
---tce-load -i nano ncurses ncurses-common(optional dahil automatic isasabay ni ncurses ito).
------At gagawa ito ng executable file nano at rnano doon sa /usr/local/bin na directory.
---------at yung ncurses ipapasok nya yung mga libraries sa lib directory.

But pag mag reboot ka mawawala yung lahat na ginagawa natin na mga libraries at executable dahil always fresh yung unix structure ni TC.

So para di muna uulitin yung ginagawa mo na manual instalation with tce-load..
----option 1.. I-add natin yung ncurses at nano sa onboot.lst(which ganoon din execute nya yung tce-load but ang system na yung gumagawa upon boot automatically). The cons hihina yung boot-time mo na isa sa pinaka pogi points ng TC.
----option 2. I add natin yung ncurses sa onboot.lst, but yung nano instead sa onboot copy nalang natin yung executable doon sa /usr/local/bin at i paste doon sa ondemand(para persistent di mawawala pag mag reboot).
----option 3. gagawa ka nalang ng script na yung laman ganito
Code:
tce-load -i ncurses nano && nano
.
------- gawin mong executable, name it nano1(huwag nano kasi once ma install mo ito gagawa uli ito ng nano exec doon sa bin) at pagkatapos ipasok mo doon sa ondemand na directory.

So yung summary optional ay para sa packages, yung on demand para sa mga executable na gusto mung di mawawala after reboot, at yun onboot.list parang startup apps in regular OS.

Nakakatama ba ako dito muth?

@muthym
Ito yung ffilesystem ko
---Yung USB ko na may TC
attachment.php



---Yung HD ko na may debian
attachment.php


WALANG SPACE PARA KAY WINDOWS DITO HEHEHEHE

- - - Updated - - -

@muthym
Okay n yung login password. I just add 2 lines in my opt/.filetool.lst which were etc/passwd and etc/shadow. Then execute sudo passwd tc and sudo passwd for root and then execute sudo filetool.sh -b to backup everything.

Ngayon meron ng login, but madali lang ma hack yung password just by deleting the noautologin in my boot code..Is there Any trick to hide that boot codes?
 

Attachments

  • 2014-05-02_00:18:18_775x500.png
    2014-05-02_00:18:18_775x500.png
    34.2 KB · Views: 28
  • 2014-05-02_00:23:20_775x500.png
    2014-05-02_00:23:20_775x500.png
    49.8 KB · Views: 29
Last edited:
@jerjerjerjanjanjan

Mukang nag-GUI ka ata :)

Meron ding paraan makita yung filesystem sa terminal.

1) using fdisk

View attachment 166465

2) using cat

View attachment 166466

Tungkol sa manual install ng packages/extensions sa TC/MC, sa case ko naman. naka-standby sila sa isang folder. then call ko sila manually but once, w/ dep files (see screenshots below). Sa ngayon, magulo pa yung mga extensions (cluttered) at nagiging redundant yung mga dependencies para ma-trace ko muna kung anu-ano yung mga common saka ako gagawa ng script. pero yung iba may script para di ako type ng type.

View attachment 166469

View attachment 166470


Okay n yung login password. I just add 2 lines in my opt/.filetool.lst which were etc/passwd and etc/shadow. Then execute sudo passwd tc and sudo passwd for root and then execute sudo filetool.sh -b to backup everything.

Ngayon meron ng login, but madali lang ma hack yung password just by deleting the noautologin in my boot code..Is there Any trick to hide that boot codes?[/B]

Kala ko, okay na sa'yo password lang :)

Ganun nga, mangyayari. Pang-bluff lang. Best way is to encrypt the backUp file produced by TC/MC.
 

Attachments

  • fdisk.jpg
    fdisk.jpg
    30 KB · Views: 8
  • cat.jpg
    cat.jpg
    34.2 KB · Views: 6
  • nano1.jpg
    nano1.jpg
    19.3 KB · Views: 5
  • nano2.jpg
    nano2.jpg
    29.3 KB · Views: 5
Last edited:
@jerjerjerjanjanjan

Mukang nag-GUI ka ata :)

Meron ding paraan makita yung filesystem sa terminal.

1) using fdisk

View attachment 915425

2) using cat

View attachment 915426

Tungkol sa manual install ng packages/extensions sa TC/MC, sa case ko naman. naka-standby sila sa isang folder. then call ko sila manually but once, w/ dep files (see screenshots below). Sa ngayon, magulo pa yung mga extensions (cluttered) at nagiging redundant yung mga dependencies para ma-trace ko muna kung anu-ano yung mga common saka ako gagawa ng script. pero yung iba may script para di ako type ng type.

View attachment 915440

View attachment 915441




Kala ko, okay na sa'yo password lang :)

Ganun nga, mangyayari. Pang-bluff lang. Best way is to encrypt the backUp file produced by TC/MC.

Hahahahaha oo nga naka gui ako, di kasi masyadong malinaw yung presentation with fdisk ni debian which makikita mo in post#119. Linux lang yung nkalagay di gaya sa TC na particular filesystem name talaga..

Salamat sa additional info viewing mounted partition

Okay so medyo kailangan talaga na encrypted yung backup...Parang pang personal or single user yung design ng TC muth. But still mahirap i ignore. Subrang gaan kasi at iba yung structure, maganda talaga....I'm still hoping na lumalalim pa yung malalaman ko dito sa TC. Try ko to with mysql-server and dropbox....
 
Last edited:
Hahahahaha oo nga naka gui ako, di kasi masyadong malinaw yung presentation with fdisk ni debian which makikita mo in post#119. Linux lang yung nkalagay di gaya sa TC na particular filesystem name talaga..

Salamat sa additional info viewing mounted partition

Okay so medyo kailangan talaga na encrypted yung backup...Parang pang personal or single user yung design ng TC muth. But still mahirap i ignore. Subrang gaan kasi at iba yung structure, maganda talaga....I'm still hoping na lumalalim pa yung malalaman ko dito sa TC. Try ko to with mysql-server and dropbox....

Kung pang personal/single user, hindi naman siguro. Kelangan lang talagang kalkalin ang TC. You have to find a way talaga. IMO, maganda yung kino-convey na attitude ng TC. Kaya sabi nga, hindi daw pang-beginner ang TC. Para sa'kin, positively, mas maganda para sa mga gustong mag-aral ng Linux o magsisimula pa lang. Para malaman ang in/out ng Linux. You don't need to buy/get & read books. You will learn from its DIY concept. Kumbaga learn by example.

You know, TC is not my main distro. Ngayon na lang ako ulit, nakakapag full terminal. though pwede ko rin naman gawin sa main distro ko. Nakita ko yung interest mo sa CLI. Naalala ko yung nagsisimulang mag-aral pa lang ako sa Linux (yun yung DamnSmallLinux - tatay ng TinyCore). Kaya its time din to give back to the community kung ano yung natutunan ko rin noon. Kaya I don't believe, kung ang alam mo lang ay itong distro na 'to ay hindi ka na marunong sa iba. Para sa'kin, pare-parehas lang naman ang mga distro. Naghihiraman lang sila ng damit pangbihis. Nagkakaiba lang sila kung paano magbihis.

When it comes to security sa TC, ang pinaka-importante lang naman talaga yung data. Yun yung kelangan mong ingatan. Standard yan sa Computer world. I remember before, nang mag-install ako ng Linux (frugal) sa isang buong ComLab sa isang pamantasan na pinapasukan ko. Hindi ko na kelangan i-maintain yung desktop. dahil pagshutdown ng mga estudyante at pagbukas ulit, fresh na naman yung desktop. kahit magbura-bura sila ng system files o bagu-baguhin yung settings babalik na naman sa dati. Unlike sa Windows, you need to install Deep Freeze para gawin 'to. Ang problema nila (students) at inaangal nila, nawawala yung data nila. Dahil nakakalimutan nila i-save sa flashdrive o sa isang assigned folder. My point is, a user should be responsible for his/her data.
 
Last edited:
Ito yung script kung papaano ko ginagawa yung video ko in my signature. Capturing the tty part of your system.

OS: Debian 7
HARDWARE: Samsung 10" NP100 S netbook

Code:
#/bin/bash/
sudo ffmpeg -f alsa -i hw:0 -f fbdev -r 30 -b 6500 -bt 712K -i /dev/fb0 myconsole.avi

- - - Updated - - -

@muthym

I've found a better bluff for noautologin. This will disable autologin.

In your /opt/bootsync.sh add this line
Code:
echo "booting" > /etc/sysconfig/noautologin

then backup everything
 
Last edited:
@muthym
I tried ubuntu, mint, trisquel, crunchbang, debian, other ubuntu derivatives and tiny core. Ano sa palagay mo muth kaialngan paba yung arch or fedora or gentoo para sa akin(pang dagdag ng knowledge)?
 
@muthym
I tried ubuntu, mint, trisquel, crunchbang, debian, other ubuntu derivatives and tiny core. Ano sa palagay mo muth kaialngan paba yung arch or fedora or gentoo para sa akin(pang dagdag ng knowledge)?

if you have still time, why not? additional knowlege din. Actually, package management lang din naman magiging karagdagang kaalaman, the rest alam mo na rin. Just like in TinyCore, you applied what you have learned in Debian. Kung stable sa'yo Debian at enough naman sa need mo, stick to it. Pero kung nakukulangan ka pa rin, its normal in GNU/Linux world na mag-explore. Ika nga collect and collect then select. Sa akin, libangan ko lang din ang TinyCore and praktisan ng gusto ko pang malaman sa GNU/Linux. Mas madaling dalhin ang magaan kaysa mabigat. At isa na rin sa koleksyon ko ng mga lightweight linux distros. At happy ako dito.

Sa pagdidistro hopping ko, nagkakaiba lang naman ang mga linux distros sa software package management. para may identity sila. still, sa damit na sinusuot nila ganun din naman. naghihiraman lang sila ng damit. Kung ang isang distro ay GNOME, meron din naman sa iba. Kung KDE, ganun din. Kung Xfce, ganun din. Kung Lxde, ganun din... etc... Ganun din sa mga apps. Saan sila nagkakaiba sa pag-iinstall, diba sa package management? Kung nasa Debian side ka, powerful ka na. Diba nga, it's the Universal Operating System. Alam mo na 'to kung bakit :)
 
Last edited:
if you have still time, why not? additional knowlege din. Actually, package management lang din naman magiging karagdagang kaalaman, the rest alam mo na rin. Just like in TinyCore, you applied what you have learned in Debian. Kung stable sa'yo Debian at enough naman sa need mo, stick to it. Pero kung nakukulangan ka pa rin, its normal in GNU/Linux world na mag-explore. Ika nga collect and collect then select. Sa akin, libangan ko lang din ang TinyCore and praktisan ng gusto ko pang malaman sa GNU/Linux. Mas madaling dalhin ang magaan kaysa mabigat. At isa na rin sa koleksyon ko ng mga lightweight linux distros. At happy ako dito.

Sa lahat ng lightweight TC na ba yung pinaka astig or meron pa?
 
Sa lahat ng lightweight TC na ba yung pinaka astig or meron pa?

Kung sa paliitan, TC na talaga kung CLI ang pag-uusapan. At GUI na rin, kung di ka pihikan. though sa ibang lightweight meron ding barebones like Puppy pero iba pa rin ang TC. Meron pa akong gusto, kaya lang GUI naman which is Slitaz. Nang i-release siya, ang size lang ~30MB lang. Now, 5.x is out (development release), kaya lang nasa ~42MB na. Pero okay na rin para sa isang GUI distro. See for yourself. See lang dahil GUI :) Kaya lang di ko pa nata-try yung bago. Meron pa akong isang favorite which is Austrumi, ~50MB, yun nga lang GUI din. Pero eye candy desktop niya. Kaya lang parang di na ganun ka-active at lumobo na .
 
Kung sa paliitan, TC na talaga kung CLI ang pag-uusapan. At GUI na rin, kung di ka pihikan. though sa ibang lightweight meron ding barebones like Puppy pero iba pa rin ang TC. Meron pa akong gusto, kaya lang GUI naman which is Slitaz. Nang i-release siya, ang size lang ~30MB lang. Now, 5.x is out (development release), kaya lang nasa ~42MB na. Pero okay na rin para sa isang GUI distro. See for yourself. See lang dahil GUI :) Kaya lang di ko pa nata-try yung bago. Meron pa akong isang favorite which is Austrumi, ~50MB, yun nga lang GUI din. Pero eye candy desktop niya. Kaya lang parang di na ganun ka-active at lumobo na .

Salamat dito sa TC muth. May paglalagyan ito sa system ko.. Hahanapan ko to ng butas maybe a thin client.. I try i remodel ko yung branches module ko. try pure bash, awk and sed yung gagamitin ko wala ng mysql-server catalog na lang yung i distribute ko. Yung system na wala masyadong dependency(just the default program of tiny core ang gagamitin ko).
 
Salamat dito sa TC muth. May paglalagyan ito sa system ko.. Hahanapan ko to ng butas maybe a thin client.. I try i remodel ko yung branches module ko. try pure bash, awk and sed yung gagamitin ko wala ng mysql-server catalog na lang yung i distribute ko. Yung system na wala masyadong dependency(just the default program of tiny core ang gagamitin ko).

You're welcome. Salamat din, pinahanga mo ko sa pagiging CLI mo. Lalo sa contributions mo dito. Malaking tulong 'to sa mga gustong mag-aral ng Linux. Just update us here. GoodLuck! :)
 
Last edited:
BC is a command line calculator. Ang problema yung default nya di mag bibgay ng decimals. So ito yung procedure to have a BC with decimal.
---option 1. after executing bc type scale=<number of decimals>, then press enter
---option 2. Gawa ka ng .bcrc file dyan sa home folder mo with a line
Code:
scale=<number of decimals>
. Then doon sa ~/.bashrc file mo add this
Code:
export BC_ENV_ARGS=~/.bcrc
. Then everytime you execute bc automatic magbibigay ng naka set na decimal in your .bcrc file
 
Ito yung pag co-convert my csv files(comma delimited) into sc(tty spreadsheet).

Code:
psc -d , -k -L -sa0:a0< mycsvfile >mynew sc

Ito yung pag merge my sc file1 into sc file2(tty spreadsheet).

Code:
merge ["source"] "|sc -v -Pa0:k0/a456:a456 myscfile1

note a0:k0 = ito yung range na i-merge ko to the second file
a456:a456 = ito yung range na pupuntahan ng first file ko.
 
Last edited:
N edit ko na yung previous post ko from colon to a comma..

Pero paano nga ba tatawagin yung file na delimited with colon?

AFAIK, comma ang madalas kung maencounter and if I'm not mistaken, csv is comma-separated values. Even before nung nagpoprogram ako in DOS, i used comma. though pwede rin naman ibang character (kaya pwede ring character-separated values). Gaya ng nabanggit mo, pwede rin gawing colon but I haven't encountered yet na ito ginamit to delimit or to separate data. Magsishift ka pa para sa colon. Ang mga common bukod sa comma ay tab at semicolon. Just recently, I'm thinking if i'll use csv to generate a database for BantasPL. Pinagpipilian ko kung comma or tab ang separator ko. But my problem was, horizontal ang ayos ng data pagnag-import sa isang program. Kaya i looked for another solution, kaya naisipan ko gumamit ng XML.

Siguro pwedeng KSV- kolon-separated values o di kaya TSV - tutuldok-separated values :) reserved na kasi CSV- Comma-Separated Values (history-wise).
 
Last edited:
AFAIK, comma ang madalas kung maencounter and if I'm not mistaken, csv is comma-separated values. Even before nung nagpoprogram ako in DOS, i used comma. though pwede rin naman ibang character (kaya pwede ring character-separated values). Gaya ng nabanggit mo, pwede rin gawing colon but I haven't encountered yet na ito ginamit to delimit or to separate data. Magsishift ka pa para sa colon. Ang mga common bukod sa comma ay tab at semicolon. Just recently, I'm thinking if i'll use csv to generate a database for BantasPL. Pinagpipilian ko kung comma or tab ang separator ko. But my problem was, horizontal ang ayos ng data pagnag-import sa isang program. Kaya i looked for another solution, kaya naisipan ko gumamit ng XML.

Siguro pwedeng KSV- kolon-separated values o di kaya TSV - tutuldok-separated values :) reserved na kasi CSV- Comma-Separated Values (history-wise).

Ang dami ko talagang matutunan pag kausap kita.. Nice yung propose mo na KSV or TSV... Iba ka talaga muth..Pilipinong-pilipino...

- - - Updated - - -




Actually yung file na na e-convert ko ay colon delimited. Generated kasi yun from my php program and display it on a web page(elinks) na at the same time parang column separator yung dating ng colon. Then print it to a text file bago ipasok sa accounting books which is SC spreadsheet.

Nag titipid ng code kasi heheheh
attachment.php
 

Attachments

  • jer.jpg
    jer.jpg
    135.9 KB · Views: 69
Last edited:
Ang dami ko talagang matutunan pag kausap kita.. Nice yung propose mo na KSV or TSV... Iba ka talaga muth..Pilipinong-pilipino...

- - - Updated - - -




Actually yung file na na e-convert ko ay colon delimited. Generated kasi yun from my php program and display it on a web page(elinks) na at the same time parang column separator yung dating ng colon. Then print it to a text file bago ipasok sa accounting books which is SC spreadsheet.

I see. Joke lang yun :) But seriously, if you're the programmer of your own program, you're the master. you can do whatever you want basta yung mapapadali lang.
 
Last edited:
USING COMMAND LINE

Ito kung papaano ko pinapasok yung system files ko remotely

---Im using a wireless lan(router)

-------install ssh
-------execute this
-------ssh <IP>

ayun papasok ka na sa tty ng remote computer..

**********************************************************************************************

Ito yung paano ako mag file sharing with linux in a wireless environment(router)

install samba
----gawa ka ng folder for sharing(ex. myshare)
execute mo to
Code:
net usershare add myshare /home/jer/myshare "my ohh my" everyone:F guest_ok=y
note: F allow read/write. R allow read only. Change y to n if you dont want to allow guest

allow everybody
Code:
sudo chmod 0777 /home/jer/myshare

Now e access natin ito from diff computer with in your lan
install again samba and smbclient
-----execute mo to
Code:
smbclient //<IP sa papasukin mo na computer with shared folder>/myshare
makakita ka ng ganito
smb: \> na prompt

just type help ibigay ni smb yung mga command like get(copying that file to your active dir), ls(view the file remotely) ...etc.

type quit or exit to exit from smb...

- - - Updated - - -

o delete shared
---sudo net usershare delete myshare

note: yung sharing with myshare lang yung na i delete but yung folder nadyan parin..

- - - Updated - - -

Ito yung example why i love so much command line.. Simple talaga yung procedure..At yung command reusable almost sa lahat ng distro.

Tingnan nyo yung pag iinstall with software manager(GUI) vs sudo apt-get install <APP>, diba mas madali yung apt-get?.

- - - Updated - - -

Ito yung papaano ko i manage wirelessly yung system file ko in my cute server from my tablet "NEXUS 7 2nd gen" .

install shellinabox
start the shellinabox service(daemon)
----open a browser
----type this in my addressbar
Code:
<my server local IP>:4200

Parang ssh yung dating except yung browser ang interface. So lahat ng gadget na may std browser pwede ma manage via shellinabox na naka install sa papasukin mo na server..

then my server's tty inside a browser.
attachment.php


v1
 

Attachments

  • 2014-05-14_1024x600.png
    2014-05-14_1024x600.png
    131.9 KB · Views: 67
Last edited:
Back
Top Bottom