Wednesday, February 26, 2014

[LINUX/UBUNTU] Administrative tasks related

“gzip: stdin has more than one entry--rest ignored” and “gzip: tmp.gz has more than one entry — unchanged”
this can happen if it's actually a ZIP-file rather than a gz-file, just with a misleading extension, and it contains multiple files. (gzip -d does support ZIP-files that contain only one file.)

In my case, that's exactly right:
$ file tmp.gz
tmp.gz: Zip archive data, at least v2.0 to extract

and using unzip rather than gzip -d worked perfectly.
---

How do I change the computer name?
do "sudo gedit" on /etc/hosts and /etc/hostname

Understanding File Permissions: What Does “Chmod 777″ Means?
for permissions, there are 3 type of actions that you can perform on a file/folder. You can either read, write or execute

Read is equivalent to ‘4’.
Write is equivalent to ‘2’.
Execute is equivalent to ‘1’


How do I mirror a directory with wget without creating parent directories?
self experience with
"wget --no-parent --no-host-directories --cut-dirs 1 -r -e robots=off http://host/dir1/XYZ":
when targetting directory XYZ, several files on "dir1" were downloaded too

How can I check disk space used in a partition using the terminal in Ubuntu 12.04 LTS?
df -h

How to edit files in a terminal with nano?

Launch app from menu as root
How to launch application as root from Unity Launcher?
NOTE: use 'nano' instead of 'vi' for easier operation
............if cursor not visible, try to perform string search ("Where Is") first
............when editing config files, use "-w" (source)

Checking version of application/package installed on Ubuntu
dpkg -s (packagename)

MOUNTING WINDOWS SHARE IN UBUNTU SERVER TERMINAL
Mount Windows Share on Ubuntu - Command Line
if you get "error(13): Permission denied", try using this syntax for credential:
"...-o username=someone,password=123456,domain=mydomain..."

Unlock The Root Account, Reset The Root Password, Change Username In Ubuntu 13.04

Xubuntu how to check used and free disk space
command: df -h

List xrdp (=xvnc?) sessions:
netstat -tulpn | grep Xvnc
to kill session, just type "kill" following by pid (righmost number return from above command)

Manageable switch related

HP V1910
-----------
(Web) View MAC addresses learned:
Network \ MAC

Even if your user has Telnet access enabled, you still have to explicitly enable Telnet service at:
Network \ Service

How to Mirror Ports on HP V1910 Series Switch - Tutorial on How to Configure
---

Allied Telesis AT-8000S
-------------------------
View complete MAC address table:
Web: Layer 2 \ MAC Address \ View Dynamic \ View
.........if it shows empty results, logout-login then try again
.........or, use different browser
CLI: in privileged (enable) mode, type "show bridge address-table"

Search a MAC address:

Web: Layer 2 \ MAC Address \ View Dynamic \ View MAC Address \ View


View next-hop switches/routers:
Web: LLDP \ Neighbors Information
CLI: show lldp neighbors (type "show lldp ?" to see other options)

Configuring Port Mirroring
---

Related
--------
Scenario: using wireshark to monitor traffic between voip gateway 192.168.0.1 and 0.2
- enable "Use promiscuous..."
- capture filter: (host 192.168.0.1 or host 192.168.0.2) and not broadcast and not multicast



Monday, February 17, 2014

Things to configure on fresh Windows installation

Change Computer Name
Add standard user
System Properties \ Advanced \ Performance Settings: Adjust for best performance
System Properties \ System Protection
gpedit.msc to configure Windows Update (if not join domain)

Softwares to install
-----------------------
PassDlg
Drivers
Note regarding Intel and NVidia:
...

Archiver (7zip)
Teamviewer
...How to hide the notifications of the Teamviewer (silent use)
FoxIt Reader
Realpopup
Antivirus (No need if there's Windows Defender already?)
Office
Firefox/Chrome
Download Manager

Printer

ffmpeg
freeSSHd

Monday, February 3, 2014

Sales entry: default Type to Item

go to sales line table->design-> view properites on field "Type" & Set the InitValue to "Item"

BUT...

The default value do not solve all cases, because do not forget that in Cronus there is modification, which copy the type from previous line (and overriding the default value)
See OnNewRecord on form 46
(in other word, if you have a line on Sales Line table with Type=(blank), InitValue will be useless)

source:
default type in sales order lines

Usage of NextControl property to speed up data entry

I have a customer who wants the following in Sales lines:

After entering the Quantity he wants teh system to automatically jump to the next line and lands on the "No." field to enter another Item number if available.

Any ideas on how to do that??

Just change the NextControl on the columns. So Control 1 will jump to Control 3, Control 3 will jump to Control 1.

set the NextControl of the QTY field to the ID of the No. field

source:
How to jump to the Next Line in Sales Lines?

Remove tabs (pages) from form

don't even touch the pages propertybefore you move the fields around.

Say you have General, Foreign Trade, Item Tracking (Not looking at NAV right now) and you want to remove the Foreign Trade tab.

Here is a step by step approach:
1: remove the fields from the Foreign Trade tab

2: Move all fields from the Item Tracking tab to the Foreign Trade Tab, so that the Item Tracking tab is empty. If you have more tabs behind that, you have to move all fields for each tab to the empty tab on the left. Don't worry that they are on the wrong tab now, you will fix this in the next step

3: click the empty space in the upper right corner of the tab control, right where a new tab would go. This should select the tab control

4: open the properties page and browse to the Pages property. NOW you can remove the Foreign Trade from the tabs.

5: close the properties page, save the form, close the form, open the form. Your fields should now all be on the right tabs, and the Foreign Trade tab should be gone

source:
how to remove tabs in a tabular form